package cn.fboost.mtos.dto.request;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;


/**
 * 订单创建请求
 */
@Data
public class OrderCreateRequest {
    @NotNull(message = "商品ID不能为空")
    @Positive(message = "商品ID有误")
    private Integer productId;

    @NotNull(message = "商品数量不能为空")
    @Positive(message = "商品数量有误")
    private Integer quantity;
    private String remark;

    @NotBlank(message = "收货人姓名不能为空")
    private String receiverName;

    @NotBlank(message = "收货人电话不能为空")
    private String receiverTelephone;

    @NotBlank(message = "收货人地址不能为空")
    private String receiverAddress;
}
